package com.mybatis.lo.handler;

import com.mybatis.lo.mapping.ParameterMapping;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 * 通用占位符处理器
 * @author zhangbh
 * 2023-06-09 20:48
 **/
@Getter
public class ParameterMappingTokenHandler implements TokenHandler {

    private final List<ParameterMapping> parameterMappings = new ArrayList<>();

    @Override
    public String handleToken(String content) {
        parameterMappings.add(new ParameterMapping(content));
        return "?";
    }
}
